package com.jpragma.flexutils.skins {
	import mx.skins.ProgrammaticSkin;

	/**
	 * TransparentBackgroundSkin is usually applied to LinkButton in order to render it as a HyperLink.
	 * @author Isaac Levin
	 */
	public class TransparentBackgroundSkin extends ProgrammaticSkin {
		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
			super.updateDisplayList(unscaledWidth, unscaledHeight);
			graphics.clear();
			graphics.beginFill(0, 0);
			graphics.lineStyle(0, 0, 0);
			graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
			graphics.endFill();
		}		
	}
}